import RequestV2 from "@/utils/requestV2";

export function remove(ids){
  return RequestV2({
    url: "robot/statement-v2/delete",
    data: ids,
    method: "POST"
  })
}
export function page(data) {
  return RequestV2({
    url: "robot/statement-v2/page",
    params: data,
    method: "GET"
  });
}

export function statusOptions() {
  return RequestV2({
    url: "robot/statement-v2/statusOptions",
    method: "get"
  });
}

export function dwFile(id){
  return RequestV2({
    url: `robot/statement-v2/dwFile?id=${id}`,
    responseType: "blob"
  })
}

export function dwLog(id){
  return RequestV2({
    url: `robot/statement-v2/dwLog?id=${id}`,
    responseType: "blob"
  })
}